package com.demo.mvc.service;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 *
 * @author lgq
 * @since
 */
@Aspect
@Component
@Slf4j
public class TestAnoImpl {
  @Pointcut("@annotation(com.demo.mvc.annotation.TestAno)")
  private void cut() {
  }

  /**
   * <h5>功能:前置通知</h5>
   */
  @Before("cut()")
  public void before() {
    log.info("自定义注解生效了");
  }
}
